package it.espsoft.easysuperenalotto.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

public class DB {
	private static SQLiteDatabase mDb = null;
	private static DataBaseCreationHelper helper = null;
		
	public static void init(Context c){
		helper = new DataBaseCreationHelper(c);
	}
	
	public static SQLiteDatabase getDataBase(){
		if(mDb == null){
			
			mDb = helper.getWritableDatabase();
			
		}
		return mDb;
	}
}
